package com.chixing.day07_adstract.Interfaces1.f1;

public class VideoCardImpl implements IVideoCard {
    private String cardName;
    private int version;

    @Override
    public String display() {
        return "芯片名称："+this.cardName+"====版本为："+(this.version);
    }

    @Override
    public String getName() {
        return this.cardName;
    }

    //自定义了一个升级功能
    public String update() {
        ++this.version;
        return "芯片："+this.cardName+"已经升级为："+(this.version);
    }

    public VideoCardImpl(String name){
        this.cardName=name;
        this.version=1;
    }

    public String getCardName() {
        return cardName;
    }

    public void setCardName(String cardName) {
        this.cardName = cardName;
    }

    public int getVersion() {
        return version;
    }

    public void setVersion(int version) {
        this.version = version;
    }
    public class Cpu {

    }


}
